<?php
/**
 * Created by PhpStorm.
 * User: MACHENIKE
 * Date: 2017/7/14
 * Time: 11:58
 */

namespace Pay;

use Org\Payment\pay_message;

class Payment_select extends pay_message {

    public $order_no = 0;

    /**
     * 保存订单号和总金额
     * Payment_request constructor.
     * @param $order_num
     */
    public function __construct($order_num)
    {
        parent::__construct();
        $this->order_no = $order_num;
    }

    /**
     * 设置Data数据
     * @return array
     */
    public function set_data()
    {
        // TODO: Implement set_data() method.
        $OrderNo    = $this->order_no;
        $ShopId     = '337186876979417088';
        $DeviceId   = '';

        return compact(
            'OrderNo','ShopId','DeviceId'
        );
    }

    /**
     * 设置optType
     * @return string
     */
    public function set_optType()
    {
        return 'FT_P107';
        // TODO: Implement set_optType() method.
    }
}